package com.ymttest.business.data;

import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.function.BiFunction;
import java.util.function.Function;

import com.ymt.util.DataManager;
import com.ymttest.database.sqlwapper.YmtCatalogsWapper;
import com.ymttest.utils.TestDataManager;

/*
 * 用于压测，生成cardList
 */
public class Data20180327 {

	public static void main(String[] args) throws IOException
	{
	  BiFunction<String, String,String> biFunction = (x, y) -> {
	      return x+"==="+y;
	
	  };
	     // Function<String,String> fun = x ->x + " after8";
	  System.out.println(biFunction.apply("tpyyes.com ", " java8"));

//	ArrayList<String> slist = TestDataManager.getLines("userId.dat");   
//	//DataManager.appendFileToLien("./cardList.dat", "cardList");
//	
//	for(int j=0;j<100000;j++){  
//	  String templine = "\""; 
//	  int num = new Random().nextInt(19)+1; 
//	  for(int k=0;k<num;k++) { 
//		int index=(int)(Math.random()*(slist.size()-1));
//	    templine+=slist.get(index)+"\"\",\"\"";
//	  }
//	  if(templine != "") 
//	  {
//	    templine=templine.substring(0,templine.length()-4);
//	    TestDataManager.appendFileToLine("./cardList.dat", templine); 
//	  }  
//	}
//	  System.out.print("ok");
	
	}
}
